  void cmd_reset(istringstream& ss) {
    for(int i=0;i<(int)fd.size();i++) delete fd[i];
    for(int i=0;i<(int)buffer.size();i++) delete buffer[i];
    for(int i=0;i<(int)table.size();i++) delete table[i];    
    for(int i=0;i<(int)plotter.size();i++) delete plotter[i];
    fd.clear();
    buffer.clear();
    table.clear();
    plotter.clear();
    current=currentplot=0;
  }
